# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

# 定义京东商品信息封装类（图片、价格、标题、推荐、评价人数、店家）
from scrapy import Item, Field

class JdProductItem(Item):
    '''定义存储京东商品信息的集合和字段'''
    collection = 'products'

    image = Field()			#图片
    price = Field()			#价格
    title = Field()			#标题
    promo_words = Field()	#推荐
    detail_url = Field()	#详情页URL	
    comment_num = Field()	#评价人数
    shop = Field()			#商家
